<template>
  <div class="uploadPage">
    <headTit :tit="tit"></headTit>
    <div class="post" :class="{disable: disable}">发送</div>
    <upload></upload>
    <div class="progress">
      <p class="bar" :style="{width:width, transition:transition}"></p>
      <p>成功上传 {{ aninums }} 张</p>
    </div>
  </div>
</template>

<script type="text/ecmascript-6">
  import headTit from '../../components/headTit/headTit.vue';
  import upload from '../../components/upload/upload.vue';
  export default {
    components: {
      headTit,
      upload
    },
    data () {
      return {
        tit: '图片上传',
        disable: true,
        aninums: 0,
        width: 0,
        transition: ''
      };
    }
  };
</script>

<style lang="scss" scoped>
  .post{
    position: absolute;
    right: 8px;
    top: 7px;
    padding: 5px 10px;
    color: #fff;
    font-size: 16px;
  }
  .disable{
    color: rgba(255,255,255, .6);
  }
  .progress{
    background-color: #fff;
    margin-top: 20px;
    padding: 10px;
    .bar{
      height: 3px;
      background-color: #41B883;
      margin-bottom: 10px;
    }
  }
</style>
